<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::FeatureHandler&lt; FeatureType, DataSet, ExampleIndex &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_feature_handler.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1_feature_handler-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::FeatureHandler&lt; FeatureType, DataSet, ExampleIndex &gt; 模板类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Utility class interface which is used for creating and evaluating features.  
 <a href="classpcl_1_1_feature_handler.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="feature__handler_8h_source.html">feature_handler.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa77260777b79014f5d3645f65562c699"><td class="memItemLeft" align="right" valign="top"><a id="aa77260777b79014f5d3645f65562c699"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#aa77260777b79014f5d3645f65562c699">~FeatureHandler</a> ()</td></tr>
<tr class="memdesc:aa77260777b79014f5d3645f65562c699"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa77260777b79014f5d3645f65562c699"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a2983e7bb571ec42225aec1024f55cb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#a2a2983e7bb571ec42225aec1024f55cb">createRandomFeatures</a> (const size_t num_of_features, std::vector&lt; FeatureType &gt; &amp;features)=0</td></tr>
<tr class="memdesc:a2a2983e7bb571ec42225aec1024f55cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates random features.  <a href="classpcl_1_1_feature_handler.html#a2a2983e7bb571ec42225aec1024f55cb">更多...</a><br /></td></tr>
<tr class="separator:a2a2983e7bb571ec42225aec1024f55cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1131f1c17f4b600506c88ca722902ae5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#a1131f1c17f4b600506c88ca722902ae5">evaluateFeature</a> (const FeatureType &amp;feature, DataSet &amp;data_set, std::vector&lt; ExampleIndex &gt; &amp;examples, std::vector&lt; float &gt; &amp;results, std::vector&lt; unsigned char &gt; &amp;flags) const =0</td></tr>
<tr class="memdesc:a1131f1c17f4b600506c88ca722902ae5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a feature on the specified data.  <a href="classpcl_1_1_feature_handler.html#a1131f1c17f4b600506c88ca722902ae5">更多...</a><br /></td></tr>
<tr class="separator:a1131f1c17f4b600506c88ca722902ae5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad68361b8d7d046f9a15c19a36366c34"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#aad68361b8d7d046f9a15c19a36366c34">evaluateFeature</a> (const FeatureType &amp;feature, DataSet &amp;data_set, const ExampleIndex &amp;example, float &amp;result, unsigned char &amp;flag) const =0</td></tr>
<tr class="memdesc:aad68361b8d7d046f9a15c19a36366c34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a feature on the specified data.  <a href="classpcl_1_1_feature_handler.html#aad68361b8d7d046f9a15c19a36366c34">更多...</a><br /></td></tr>
<tr class="separator:aad68361b8d7d046f9a15c19a36366c34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2afe64cf81c530eafd377081208f571"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_feature_handler.html#aa2afe64cf81c530eafd377081208f571">generateCodeForEvaluation</a> (const FeatureType &amp;feature, ::std::ostream &amp;stream) const =0</td></tr>
<tr class="memdesc:aa2afe64cf81c530eafd377081208f571"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates evaluation code for the specified feature and writes it to the specified stream.  <a href="classpcl_1_1_feature_handler.html#aa2afe64cf81c530eafd377081208f571">更多...</a><br /></td></tr>
<tr class="separator:aa2afe64cf81c530eafd377081208f571"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class FeatureType, class DataSet, class ExampleIndex&gt;<br />
class pcl::FeatureHandler&lt; FeatureType, DataSet, ExampleIndex &gt;</h3>

<p>Utility class interface which is used for creating and evaluating features. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a2a2983e7bb571ec42225aec1024f55cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a2983e7bb571ec42225aec1024f55cb">&#9670;&nbsp;</a></span>createRandomFeatures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class FeatureType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_feature_handler.html">pcl::FeatureHandler</a>&lt; FeatureType, DataSet, ExampleIndex &gt;::createRandomFeatures </td>
          <td>(</td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>num_of_features</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; FeatureType &gt; &amp;&#160;</td>
          <td class="paramname"><em>features</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates random features. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">num_of_features</td><td>The number of random features to create. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">features</td><td>The destination for the created features. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#adb35b339a775ceac5d1e47ab309d4dd4">pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;</a>, <a class="el" href="classpcl_1_1_scaled_multi_channel2_d_comparison_feature_handler.html#a04f5af75f4ff54e0d19a6140d39ac2b4">pcl::ScaledMultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE &gt;</a> , 以及 <a class="el" href="classpcl_1_1face__detection_1_1_feature_handler_depth_average.html#a4d139c5099b1f0b68961cf54aa109dad">pcl::face_detection::FeatureHandlerDepthAverage&lt; FT, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="aad68361b8d7d046f9a15c19a36366c34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad68361b8d7d046f9a15c19a36366c34">&#9670;&nbsp;</a></span>evaluateFeature() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class FeatureType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_feature_handler.html">pcl::FeatureHandler</a>&lt; FeatureType, DataSet, ExampleIndex &gt;::evaluateFeature </td>
          <td>(</td>
          <td class="paramtype">const FeatureType &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DataSet &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ExampleIndex &amp;&#160;</td>
          <td class="paramname"><em>example</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>flag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a feature on the specified data. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The features to evaluate. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set on which the feature is evaluated. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">example</td><td>The examples which specify on which parts of the data set the feature is evaluated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>The destination for the results of the feature evaluation. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">flag</td><td>Flags that are supplied together with the results. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a9b8967a3de520d2d5d556f63317d54fb">pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;</a>, <a class="el" href="classpcl_1_1_scaled_multi_channel2_d_comparison_feature_handler.html#a42876790466c7ed3f9c61f6a3897df18">pcl::ScaledMultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE &gt;</a> , 以及 <a class="el" href="classpcl_1_1face__detection_1_1_feature_handler_depth_average.html#a84f08ec6e223bcd3db975cf2c597d9e9">pcl::face_detection::FeatureHandlerDepthAverage&lt; FT, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a1131f1c17f4b600506c88ca722902ae5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1131f1c17f4b600506c88ca722902ae5">&#9670;&nbsp;</a></span>evaluateFeature() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class FeatureType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_feature_handler.html">pcl::FeatureHandler</a>&lt; FeatureType, DataSet, ExampleIndex &gt;::evaluateFeature </td>
          <td>(</td>
          <td class="paramtype">const FeatureType &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DataSet &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; ExampleIndex &gt; &amp;&#160;</td>
          <td class="paramname"><em>examples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>results</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates a feature on the specified data. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The features to evaluate. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set on which the feature is evaluated. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">examples</td><td>The examples which specify on which parts of the data set the feature is evaluated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">results</td><td>The destination for the results of the feature evaluation. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">flags</td><td>Flags that are supplied together with the results. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_multi_channel2_d_comparison_feature_handler.html#a2acf4c17b0cd02942d5bbed2637d0e56">pcl::MultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS &gt;</a>, <a class="el" href="classpcl_1_1_scaled_multi_channel2_d_comparison_feature_handler.html#a0a5961d9d1a06de376b80dc07a53ca99">pcl::ScaledMultiChannel2DComparisonFeatureHandler&lt; DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE &gt;</a> , 以及 <a class="el" href="classpcl_1_1face__detection_1_1_feature_handler_depth_average.html#a64aa9273710c173d8ed7214fcdce91d6">pcl::face_detection::FeatureHandlerDepthAverage&lt; FT, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="aa2afe64cf81c530eafd377081208f571"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2afe64cf81c530eafd377081208f571">&#9670;&nbsp;</a></span>generateCodeForEvaluation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class FeatureType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_feature_handler.html">pcl::FeatureHandler</a>&lt; FeatureType, DataSet, ExampleIndex &gt;::generateCodeForEvaluation </td>
          <td>(</td>
          <td class="paramtype">const FeatureType &amp;&#160;</td>
          <td class="paramname"><em>feature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Generates evaluation code for the specified feature and writes it to the specified stream. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">feature</td><td>The feature for which code is generated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destionation for the code. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_feature_handler_depth_average.html#a8a093bec62b9ad8bc70343a9807605a2">pcl::face_detection::FeatureHandlerDepthAverage&lt; FT, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="feature__handler_8h_source.html">feature_handler.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_feature_handler.html">FeatureHandler</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
